<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //随机取0-1之间的数包含0不包含1
        console.log(Math.random())
        //范围 例:5-10之间的整数
        console.log(Math.floor(Math.random()*5)+5)
        //向上取整
        // console.log(Math.ceil(3.3))
        //向下取整
        // console.log(Math.floor(3.9))
        //取最大值
        // console.log(Math.max(2,4,8,21,22))
        //取最小值
        // console.log(Math.min(2,4,8,21,22))
        // 绝对值
        // console.log(Math.abs(-1))
        //幂运算
        // console.log(Math.pow(2,3))
    </script>
</body>
</html>